package com.dongliu.service.impl;

import com.dongliu.dao.NoticeDao;
import com.dongliu.domain.Notice;
import com.dongliu.service.NoticeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class NoticeServiceImpl implements NoticeService {

    @Autowired
    private NoticeDao noticeDao;

    public boolean update(Notice notice) {
        return noticeDao.update(notice) > 0;
    }

    public Notice getContent() {
        return noticeDao.getContent();
    }
}
